﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bowerbird.Core.Storage
{
    public class Contact
    {
        public virtual string UserId { get; set; }
        public virtual string ContactId { get; set; }
        public virtual string ContactName { get; set; }
        public virtual string ContactGroups { get; set; }

        public override bool Equals(object obj)
        {
            Contact other = obj as Contact;

            if (other == null)
                return false;

            return
                this.UserId == other.UserId &&
                this.ContactId == other.ContactId;
        }

        public override int GetHashCode()
        {
            return
                (UserId ?? string.Empty).GetHashCode() +
                (ContactId ?? string.Empty).GetHashCode();
        }

    }
}
